cmake_minimum_required(VERSION 3.10)
project(MyProject)

# 包含头文件目录
include_directories(${CMAKE_SOURCE_DIR}/include)

# 查找 src 目录下所有 cpp 文件
file(GLOB SOURCES "src/*.cpp")

# 生成动态库
add_library(myrga SHARED ${SOURCES})

# 库目录
link_directories(${CMAKE_SOURCE_DIR}/lib)

# 链接 RGA 库
target_link_libraries(myrga /usr/lib/aarch64-linux-gnu/librga.so.2 pthread)
